package com.foreverwin.jzymes.production.tool.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.Date;

/**
 * 刀具记录表 Z_TOOL_USAGE_LOG
 * 
 * @author ervin
 * @date 2019-03-23
 */
public class ToolUsageLog
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private String handle;
	/** 站点 */
	private String site;
	/** 机种 */
	private String machineType;
	/** CNC机台 */
	private String resrce;
	/** 刀号 */
	private String toolLoc;
	/** 使用寿命 */
	private Long usageCount;
	/** 开始时间 */
	private Date startDateTime;
	/** 结束时间 */
	private Date endDateTime;

	public void setHandle(String handle) 
	{
		this.handle = handle;
	}

	public String getHandle() 
	{
		return handle;
	}
	public void setSite(String site) 
	{
		this.site = site;
	}

	public String getSite() 
	{
		return site;
	}
	public void setMachineType(String machineType) 
	{
		this.machineType = machineType;
	}

	public String getMachineType() 
	{
		return machineType;
	}
	public void setResrce(String resrce) 
	{
		this.resrce = resrce;
	}

	public String getResrce() 
	{
		return resrce;
	}
	public void setToolLoc(String toolLoc) 
	{
		this.toolLoc = toolLoc;
	}

	public String getToolLoc() 
	{
		return toolLoc;
	}
	public void setUsageCount(Long usageCount) 
	{
		this.usageCount = usageCount;
	}

	public Long getUsageCount() 
	{
		return usageCount;
	}
	public void setStartDateTime(Date startDateTime) 
	{
		this.startDateTime = startDateTime;
	}

	public Date getStartDateTime() 
	{
		return startDateTime;
	}
	public void setEndDateTime(Date endDateTime) 
	{
		this.endDateTime = endDateTime;
	}

	public Date getEndDateTime() 
	{
		return endDateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("handle", getHandle())
            .append("site", getSite())
            .append("machineType", getMachineType())
            .append("resrce", getResrce())
            .append("toolLoc", getToolLoc())
            .append("usageCount", getUsageCount())
            .append("startDateTime", getStartDateTime())
            .append("endDateTime", getEndDateTime())
            .toString();
    }
}
